package com.dayuanit.dy16.atm.boatm.controller;

import org.apache.shiro.authz.annotation.RequiresRoles;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController extends BaseController {

    @RequiresRoles("admin")
    @RequestMapping("/user/toCreateUser")
    public String toCreateUser() {
        return "addUser";
    }

    @RequestMapping("/user/toCreateRole")
    public String toCreateRole() {
        return "addRole";
    }

    @RequestMapping("/user/toUserRole")
    public String toUserRole() {
        return "userRole";
    }

    @RequestMapping("/user/toCreatePerimission")
    public String toCreatePerimission() {
        return "addPerimission";
    }

    @RequestMapping("/user/toRolePermission")
    public String toRolePermission() {
        return "rolePerimission";
    }

    @RequestMapping("/user/toLogin")
    public String toLogin() {
        return "login";
    }

    @RequestMapping("/user/toSalary")
    public String toSalary() {
        return "salary";
    }

}
